package com.andy.vo;
// default package
// Generated 2016-10-6 2:36:27 by Hibernate Tools 4.0.0.Final

import java.util.Date;

import javax.validation.constraints.NotNull;

public class ExamUserVO implements java.io.Serializable {

	private static final long serialVersionUID = 2281919437068395721L;
	@NotNull(message = "学号不能为空。")
	private String userId;
	@NotNull(message = "姓名不能为空。")
	private String userName;
	@NotNull(message = "密码不能为空。")
	private String password;
	private String tel;
	private String email;
	private String address;
	private Date birthday;
	@NotNull(message = "出生日期不能为空。")
	private String birthdayString;
	@NotNull(message = "性别不能为空。")
	private int gender;
	private Date lastLockTime;
	private int loginFailCount;
	private int userRole;

	public ExamUserVO() {
	}

	public ExamUserVO(String userId, String userName, String password, Date birthday, int gender) {
		this.userId = userId;
		this.userName = userName;
		this.password = password;
		this.birthday = birthday;
		this.gender = gender;
	}

	public ExamUserVO(String userId, String userName, String password, String tel, String email, String address,
			Date birthday, int gender) {
		this.userId = userId;
		this.userName = userName;
		this.password = password;
		this.tel = tel;
		this.email = email;
		this.address = address;
		this.birthday = birthday;
		this.gender = gender;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getGender() {
		return this.gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public Date getLastLockTime() {
		return lastLockTime;
	}

	public void setLastLockTime(Date lastLockTime) {
		this.lastLockTime = lastLockTime;
	}

	public int getLoginFailCount() {
		return loginFailCount;
	}

	public void setLoginFailCount(int loginFailCount) {
		this.loginFailCount = loginFailCount;
	}

	public int getUserRole() {
		return userRole;
	}

	public void setUserRole(int userRole) {
		this.userRole = userRole;
	}

	public String getBirthdayString() {
		return birthdayString;
	}

	public void setBirthdayString(String birthdayString) {
		this.birthdayString = birthdayString;
	}

	@Override
	public String toString() {
		return "ExamUserVO [userId=" + userId + ", userName=" + userName
				+ ", password=" + password + ", tel=" + tel + ", email="
				+ email + ", address=" + address + ", birthday=" + birthday
				+ ", gender=" + gender + ", lastLockTime=" + lastLockTime
				+ ", loginFailCount=" + loginFailCount + "]";
	}

}
